﻿using Lf_Shop.Models.Database;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Lf_Shop.Models
{
    public class GetAdminOrderListResponse
    {
        /// <summary>
        /// 订单列表
        /// </summary>
        public List<AdminOrder> OrderList { get; set; }
        /// <summary>
        /// 订单总数
        /// </summary>
        public int Total { get; set; }
    }
    /// <summary>
    /// 用户订单
    /// </summary>
    public class AdminOrder
    {
        /// <summary>
        /// 订单状态
        /// </summary>
        public int OrderState { get; set; }

        /// <summary>
        /// 订单Id
        /// </summary>
        public int OrderId { get; set; }
        /// <summary>
        /// 手机号
        /// </summary>
        public string Mobile { get; set; }
        /// <summary>
        /// 昵称
        /// </summary>
        public string NickName { get; set; }
        /// <summary>
        /// 用户Id
        /// </summary>
        public int UserId { get; set; }
        /// <summary>
        /// 订单编号
        /// </summary>
        public string OrderNum { get; set; }
        /// <summary>
        /// 下单时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 订单价格
        /// </summary>
        public decimal OrderPrice { get; set; }
        /// <summary>
        /// 订单商品数量
        /// </summary>
        public int OrderTotal { get; set; }
        /// <summary>
        /// 订单明细
        /// </summary>
        public List<OrderItem> OrderItems { get; set; }
    }
}
